package org.jeecg.modules.customer.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.customer.entity.Customer;
import org.jeecg.modules.customer.facade.ICustomerFacade;
import org.jeecg.modules.customer.service.ICustomerService;
import org.jeecg.modules.customer.vo.CustomerVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 用户
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class CustomerFacadeImpl extends IFacadeImpl<CustomerVo, Customer, ICustomerService>  implements ICustomerFacade<CustomerVo, Customer> {
        @Autowired
        private ICustomerService customerService;


         @Override
         public Customer po2Vo(CustomerVo vo) {
                Customer po = new Customer();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public CustomerVo vo2Po(Customer po) {
                CustomerVo vo = new CustomerVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
